<?php
if(intval($_GET["id"]) != 0)
{
	$id = intval($_GET["id"]);
}

$a = substr($id, 0, 1);
$pix = substr($id, 1, 2);
//level 1
?>
<script>
function showFunc()
{
	if(document.getElementById("topic_id_705").style.display == ""){
		document.getElementById("topic_id_705").style.display = "none";
		document.getElementById("topic_id_706").style.display = "none";
		document.getElementById("topic_id_707").style.display = "none";
	}else{
		document.getElementById("topic_id_705").style.display = "";
		document.getElementById("topic_id_706").style.display = "";
		document.getElementById("topic_id_707").style.display = "";
	}
}
</script>
			<div class="TwoColumnsContent_Left">
				<div class="Menu">
				<?php
					if($pix == "00")
					{
						for($i = 0; $i < count($topicArr); $i++){
							if($a == substr($topicArr[$i][0], 0, 1)){
								if($topicArr[$i][3] != "" and $topicArr[$i][2] != 1){
									echo "<a href=\"/topic.php?id=".$topicArr[$i][0]."\"";
									if($topicArr[$i][0] == $id){
										echo " class=\"selected\"";
									}
									echo ">".$topicArr[$i][3]."</a>";
								}
							}
						}
					}else{
						for($i = 0; $i < count($topicArr); $i++){
							if($a == substr($topicArr[$i][0], 0, 1)){
								if($topicArr[$i][3] != "" and $topicArr[$i][2] != 1){
									if($topicArr[$i][0] == "705" || $topicArr[$i][0] == "706" || $topicArr[$i][0] == "707"){
										echo "<a id=\"topic_id_".$topicArr[$i][0]."\" href=\"/topic.php?id=".$topicArr[$i][0]."\" style=\"padding-left:34px;font-size:12px;font-weight:normal\"";
										if($topicArr[$i][0] == $id){
											echo " class=\"selected\"";
										}
										echo ">".$topicArr[$i][3]."</a>";
									}else{
									
										if($topicArr[$i][0] == "704"){
											$url = "javascript:showFunc();";
										}else{
											$url = "/topic.php?id=".$topicArr[$i][0];
										}
										echo "<a href=\"".$url."\"";
										if($topicArr[$i][0] == $id){
											echo " class=\"selected\"";
										}
										echo ">".$topicArr[$i][3]."</a>";
									}
								}
							}
						}
					}
					
					if($a == "9"){
						echo "<a href=\"/applicant.php\">$applicant_name</a>";
					}
					
					if($_ENV["REQUEST_URI"] == "/applicant.php"){
						echo "<a href=\"/topic.php?id=".$topicArr[81][0]."\">".$topicArr[81][3]."</a>";
						echo "<a href=\"/topic.php?id=".$topicArr[82][0]."\">".$topicArr[82][3]."</a>";
						echo "<a href=\"/applicant.php\" class=\"selected\">$applicant_name</a>";
					}
				?>
				</div>
				<div class="ImageLinks">
					<a href="/bbs/forumdisplay.php?fid=<?=ForumIds::id1?>" class="ImageLink"><img src="images/lv2imagelinks/01.png" border="0"/></a>
					<a href="/bbs/forumdisplay.php?fid=<?=ForumIds::id2?>" class="ImageLink"><img src="images/lv2imagelinks/02.png" border="0"/></a>
					<a href="/bbs/forumdisplay.php?fid=<?=ForumIds::id3?>" class="ImageLink"><img src="images/lv2imagelinks/03.png" border="0"/></a>
					<a href="/bbs/forumdisplay.php?fid=<?=ForumIds::id4?>" class="ImageLink"><img src="images/lv2imagelinks/04.png" border="0"/></a>
				</div>
			</div>